Scalable i/o adapter function level error detection, isolation, and reporting

ABSTRACT

A system for implementing scalable input/output (I/O) function level error detection, isolation, and reporting, the system comprising, an I/O hub communicatively coupled to a computer processor, system memory and at least one I/O adapter, the at least one I/O adapter include a function and the I/O hub including logic for implementing a method. The method comprising detecting an error in a communication initiated between the function and the system memory, the communication including an I/O request from an application. The method further comprising preventing future communication between the one function and the system memory in response to the detecting. The method additionally comprising notifying the application that the error in communication occurred in response to the detecting.

BACKGROUND

This invention relates generally to processor input/output (I/O) interfacing within a computing environment, and more particularly to scalable adapter level error detection, isolation, and reporting.

In enterprise class servers, there is a need to protect the integrity of data generated by adapters. There is also a need to provide isolation and reporting when errors are detected for these adapters. Typical solutions are either primitive, provide no isolation, do not protect the data or are complex and not scalable. This invention provides a robust, scalable solution that is simple to implement in hardware and/or software. Protocols, such as PCIe, that do not acknowledge certain operations (e.g. DMA Writes), leave data integrity exposures in the event of errors. Current systems either ignore the error or require complex hardware modifications in order to properly capture error conditions.

BRIEF SUMMARY

A system for implementing scalable input/output (I/O) function level error detection, isolation, and reporting, the system comprising, an I/O hub communicatively coupled to a computer processor, system memory and at least one I/O adapter, the at least one I/O adapter include a function and the I/O hub including logic for implementing a method. The method comprising detecting an error in a communication initiated between the function and the system memory, the communication including an I/O request from an application. The method further comprising preventing future communication between the one function and the system memory in response to the detecting. The method additionally comprising notifying the application that the error in communication occurred in response to the detecting.

A method for implementing scalable I/O function level error detection, isolation, and reporting, the method comprising detecting an error in a communication initiated between a function and the system memory, the communication including an I/O request from an application. The method further comprising preventing future communication between the function and the system memory in response to the detecting. The method additionally comprising notifying the application that the error in communication occurred in response to the detecting.

A computer program product for implementing scalable I/O function level error detection, isolation, and reporting, the computer program product comprising a non-transitory storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method. The method comprising detecting an error in a communication initiated between a function and the system memory, the communication including an I/O request from an application. The method further comprising preventing future communication between the function and the system memory in response to the detecting. The method additionally comprising notifying the application that the error in communication occurred in response to the detecting.

Additional features and advantages are realized through the techniques of the present invention. Other embodiments and aspects of the invention are described in detail herein and are considered a part of the claimed invention. For a better understanding of the invention with advantages and features, refer to the description and to the drawings.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

Referring now to the drawings wherein like elements are numbered alike in the several FIGURES:

FIG. 1 depicts a block diagram of a computer system implementing PCIe adapters that may be implemented in an exemplary embodiment;

FIG. 2 depicts a block diagram of a scalable PCIe function level error detection, isolation, and reporting system that may be implemented by an exemplary embodiment;

FIG. 3 depicts a more detailed block diagram of a scalable PCIe function level error detection, isolation, and reporting system that may be implemented by an exemplary embodiment;

FIG. 4 depicts a process flow of a scalable PCIe function level error detection, isolation, and reporting process that may be implemented by an exemplary embodiment;

FIG. 5 depicts a block diagram of a PCIe error log record that may be implemented by an exemplary embodiment; and

FIG. 6 depicts a process flow of the initialization of a scalable PCIe function level error detection, isolation, and reporting system that may be implemented by an exemplary embodiment.

DETAILED DESCRIPTION

An exemplary embodiment of the present invention provides for scalable PCIe function-level error, detection, and recovery.

In standard implementations of PCIe, the PCIe adapters have no mechanism for receiving acknowledgements of the successful completion of a direct memory access (DMA) Write operation. One example of such a request is software executing in memory which may make a request for data accessible over a PCIe adapter. A typical data read request, for example to a disk, involves multiple DMA writes to memory by the PCIe adapter, and this multi-transactional read is flagged as complete once the PCIe adapter has read all of the requested data from disk. In the event of an error in a multi-transaction function, such as the transaction described here, the PCIe adapter will continue sending data to the PCIe hub even if one of the transactions fails. Once the PCIe adapter completes storing the requested data into memory, the PCIe adapter will issue a status update indicating that the read operation has completed because it has no indication that one of the transactions has failed. A program executing in memory will read the indicator set by the adapter and will not detect that an error exists in the data. In an exemplary embodiment, a mechanism for the prevention of this type of error is presented herein.

One exemplary embodiment of a computing environment to incorporate and use one or more aspects of the present invention is described with reference to FIG. 1. In one example, a computing environment 100 is a System z® server offered by International Business Machines Corporation. System z is based on the z/Architecture® offered by International Business Machines Corporation. Details regarding the z/Architecture® are described in an IBM® publication entitled, “z/Architecture Principles of Operation,” IBM Publication No. SA22-7832-07, February 2009, which is hereby incorporated herein by reference in its entirety. IBM®, System z and z/Architecture are registered trademarks of International Business Machines Corporation, Armonk, N.Y. Other names used herein may be registered trademarks, trademarks or product names of International Business Machines Corporation or other companies.

In an exemplary embodiment, computing environment 100 includes one or more central processing units (CPUs) 102 or computer processors coupled to a system memory 104 via a memory controller 106. To access the system memory 104, one of the CPUs 102 issues a read or write request that includes an address used to access the system memory 104. The address included in the request is typically not directly usable to access the system memory 104, and therefore, it is translated to an address that is directly usable in accessing the system memory 104. The address is translated via an address translation mechanism (ATM) 108, as shown in FIG. 1. For example, the address may be translated from a virtual address to a real or absolute address using, for instance, dynamic address translation (DAT).

The request, including the translated address, is received by the memory controller 106. In an exemplary embodiment, the memory controller 106 is comprised of hardware and is used to arbitrate for access to the system memory 104 and to maintain the system memory's 104 consistency. This arbitration is performed for requests received from The CPUs 102, as well as for requests received from one or more adapters 110. Similar to the CPUs 102, the adapters 110 may issue requests to the system memory 104 to gain access to the system memory 104.

In an exemplary embodiment, adapter 110 is a Peripheral Component Interface (PCI) or PCI express (PCIe) adapter that performs one or more PCIe functions. A PCIe function issues a request that requires access to the system memory 104. The request is routed to an I/O hub 112 (e.g., a PCI hub) via one or more switches (e.g., PCIe switches) 114. In one exemplary embodiment, the I/O hub 112 is comprised of hardware, including one or more state machines, and logic circuits for performing scalable I/O adapter function level error detection, isolation and reporting.

The I/O hub 112 includes, for instance, a root complex 116 that receives the request from the switch 114. The request includes an input/output (I/O) address that may need to be translated, and thus, the root complex 116 provides the address to an address translation and protection unit (ATP Unit) 118. The ATP Unit 118 is, for instance, a hardware unit used to translate, if needed, the I/O address to an address directly usable to access the system memory 104, as described in further detail below.

The request initiated from one of the adapters 110, including the address (translated or initial address, if translation is not needed), is provided to the memory controller 106 via, for instance, an I/O-to-memory bus 120 (also referred to herein as an I/O bus). The memory controller 106 performs its arbitration and forwards the request with the address to the system memory 104 at the appropriate time.

Turning now to FIG. 2, exemplary components of the system memory 104 and the I/O hub 112 will now be described. In one exemplary embodiment, the system memory 104 includes one or more address spaces 200. The address space 200 refers to a particular portion of the system memory 104 that has been assigned to a particular component of the computing environment 100, such as one of the adapters 110. By way of non-limiting example, the address space 200 may be accessible by DMA initiated by one of the adapters 110 and, as shown in FIG. 2 for illustrative purposes, the address space 200 is referred to as a DMA address space 200.

In an exemplary embodiment, the system memory 104 includes address translation tables 202 used to translate an address from one that is not directly usable for accessing the system memory 104 to one that is directly usable. In one embodiment, there are one or more of the address translation tables 202 assigned to DMA address space 200, and the one or more address translation tables 202 may be configured based on, for instance, the size of the address space to which they are assigned, the size of the DMA address translation tables 202 themselves, and/or the size of the page (or other unit of memory) to be accessed.

In an exemplary embodiment, a hierarchy of DMA address translation tables 202 includes a first-level table 202 a (e.g., a segment table) to which an input/output address translation pointer (IOAT ptr) 218 (described below) is directed, and a second, lower level table 202 b (e.g., a page table) to which an entry of the first-level table 202 a is pointed. One or more bits of a received PCIe address 204, which is received from one of the adapters 110, may be used to index into the table 202 a to locate a particular entry 206 a, which indicates the particular lower level table 202 b. One or more other bits of PCIe address 204 may then be used to locate a particular entry 206 b in the lower level table 202 b. In this example, the entry 206 b provides the address used to locate the correct page, and additional bits in the PCIe address 204 may be used to locate a particular location 208 in the page to perform a data transfer.

In one example, an operating system (not shown) may be configured to assign the DMA address space 200 to one of the adapters 110. This assignment may be performed via a registration process, which causes an initialization (via, e.g., trusted software) of a device table entry 210 for the adapter 110. The device table entry 210 may be located in a device table 211 which, in turn, is located in the I/O hub 112. In an exemplary embodiment, the device table 211 is located within the ATP Unit 118 (FIG. 1) of the I/O hub 112.

In an exemplary embodiment, device table entry 210 includes a number of fields, such as the following:

Format (FMT) 212: Indicates the format of an upper level table of the address translation tables 202 (e.g., in the example above, the first-level table 202 a);

PCIe base address (PCI Base @) 214 and PCI limit 216: Provides a range used to define the DMA address space 200 and verify a received address (e.g., the PCIe address 204) is valid; and

IOAT Ptr 218: Is a pointer to the highest level of one of the DMA address translation tables 202 (e.g. first level table 202 a) used for the DMA address space 200.

In addition the device table entry 210 may contain information related to converting Message Signaled Interruptions (MSI) to interrupts that may be interpreted by the system (not shown).

In an exemplary embodiment, the device table entry 210 is located using a requestor identifier (RID) located in a request issued by a PCI function 220 associated with one of the adapters 110 (and/or by a portion of the address). The requestor identifier (e.g., a 16-bit value that includes a bus number, device number and function number) is included in the request, as well as the PCIe address 204 (e.g., a 64-bit PCIe address) to be used to access the system memory 104. The request, including the RID and I/O address, is provided to, e.g., a contents addressable memory (CAM) 230 via, e.g., the switch 114, which is used to provide an index value. The output of the CAM 230 is used to index into the device table 211 to locate the device table entry 210. In other embodiments, the CAM 230 or other look-up is not needed and the RID may be used as the index.

In an exemplary embodiment, fields within the device table entry 210 are used to ensure the validity of the PCIe address 204 and the configuration of the address translation tables 202. For example, the inbound address in the request is checked by the hardware of the I/O hub 112 to ensure that it is within the bounds defined by PCI base address 214 and the PCI limit 216 stored in the device table entry 210 located using the RID of the request that provided the address. This ensures that the address is within the range previously registered and for which the address translation tables 202 are validly configured.

Turning now to FIG. 3, a detailed block diagram of a scalable I/O adapter function level error detection, isolation, and reporting system will now be described in an exemplary embodiment. The adapters 110 may receive requests for access to attached resources in the computing environment from, for example, an application 322 which is executed by the CPU 102 and runs in application memory (not shown). The adapters 110 communicate with the CPUs 102 and may perform read and write operations to the system memory 104 through the I/O hub 112, as described above. The I/O hub 112 maintains the device table 211 which, in turn, contains the device table entries 210 comprised of fields as described above. In an exemplary embodiment the device table entry 210 further comprises an error identifier field 302 which is used by the I/O hub 112 to indicate an error as will be described in detail below. In the I/O hub 112 further comprises a PCI error vector base address 310 and a PCI error log base address 316 field for storing the base addresses within the system memory 104 of the starting location of a PCI error vector 312 and a PCI error log 318 respectively as will be discussed in more detail below. The CPU 102 includes an attention vector 306 used for setting and detecting interrupts which are triggered by the I/O hub 112 as will be described in more detail below. In an exemplary embodiment the system memory 104 further includes the PCI error log 318. The PCI error log 318 contains one or more PCI error log records 320 for logging the details of errors that occur at the adapters 110 as will be described in more detail below. The system memory 104 further contains the PCI error vector 312. In an exemplary embodiment the PCI error vector 312 contains a plurality of PCI error vector bits 314, with each bit representing one of the adapters 110 (or a PCI function within an adapter). Each of these bits also indicates that the I/O hub 112 has stored the PCI error log record 320 associated with this adapter 110. The PCI error vector bit 314 is set to flag an error with an adapter 110 as will be described in more detail below. The monitoring thread 304 may access the system memory 104 including the PCI error log 318 and the PCI error vector 312. In an exemplary embodiment a monitoring thread 304 executes on the CPU 102 and monitors the PCI error vector 312 and the attention vector 306. The monitoring thread 304 detects and propagates error signals as will be described in more detail below.

Although the adapters have been described as operating in a single operating system environment, it will be understood that in alternate embodiments of the present invention would also be applicable to environments in which there are multiple adapters each of which may be owned by a different operating system. The monitoring thread 304 is implemented by trusted firmware (not shown) such that individual operating systems are prevented from accessing the PCI error log 318 and PCI error vector 312 directly. This trusted firmware monitors the PCI error log 318 and the PCI error vector 312 and notifies the appropriate operating system when an adapter that it owns encounters an error.

Turning now to FIG. 4 a flow diagram illustrating a process for implementing scalable I/O adapter function level error detection, isolation and reporting will now be described in an exemplary embodiment. At block 400, one of the adapters 110 initiates one or more read and/or write operations in response to receiving a request from the application 322. At block 402, the I/O hub 112 detects an error in a particular operation executed by the adapter 110 (e.g. the received PCI address is outside the range previously registered for the adapter). At block 404 the I/O hub 112 sets one or more flags (e.g. the error identifier fields 302, and 303) in the device table 211 indicating that the adapter 110 has entered an error state. In an exemplary embodiment one bit will indicate the error state, and an additional bit will be set that independently blocks load responses. In an additional embodiment, as part of the recovery process load operations from the CPU 102 are allowed to complete successfully while DMA operations initiated from the adapter are still blocked by the I/O hub 112.

As indicated above, the device table 211 comprises one device table entry 210 for each of the adapters 110 in communication with the I/O hub 112 as described above. In exemplary embodiments, the device table entry 210 allocates one or more bits to indicate the state of the function of the adapter 110 associated with one of the device table entries 210. At block 406 the I/O hub 112 begins to block any further operations related to the function 220 from the adapter 110 which was flagged as being in an error state at block 404. In an exemplary embodiment, any further operations, including but not limited to DMA operations, MSI, and Load responses, are ignored by the I/O hub 112. At block 408, the I/O hub 112 writes information related to the error in the PCI error log 318. The I/O hub 112 uses the PCI error log base 316, which, as described above, is an address in the system memory 104 where the PCI error log 318 begins, and writes to the system memory 104 at an offset from the PCI error log base 316 based on the adapter 110 which is in error. For example, if a third adapter 110 (e.g. the adapter associated with device table entry 210 at index 3) connected to the I/O hub 112 is found to be in an error state, the I/O hub 112 will write the error in the PCI error log 318 by starting at the PCI error log base 316, and then advancing X*Y*Z bits wherein X is the number of the adapter 110, in this case 3, Y is the number of words allocated for each PCI error log record 320, in this case 8, and Z is the number of bits in each word, in this case 32.

FIG. 5 shows one embodiment of the PCI error log record 320. The PCI error log record 320 is made up of multiple entries. The PCI error log record 320 may include the PCI data 502 received in the failing operation, the length 510 of the operation and an indication whether the operation was a write or a read. The PCI error log record 320 also includes a hardware error code 504 for indicating the type of error detected by the I/O hub 112. These errors can include specific error conditions detected by the I/O hub 112 including but not limited to such errors as the PCI virtual address is out of range, address translation error, interrupt processing error and a PCI fatal error. The PCI error log record 320 also includes a PCI virtual address 506 of the adapter 110 which indicates the address that was being processed by the I/O hub 112 when the error was detected. The PCI error log record 320 further includes a failing address identifier 508 (FAID) that indicates whether the failing operation was a DMA, an MSI or in the case of an address translation error, the level of translation that encountered the error. The error log record 320 may also include an error code 512 identifying a particular hardware error within the I/O hub 112, and/or a response code 514 for errors encountered on the I/O-to-memory bus 120. Although the PCI error log record 320 has been described as having a series of fields, it will be understood that the PCI error log record 320 could be made up of any combination of flags and fields including additional fields or one or more fields as described above for the purpose of indicating the type of error detected by the I/O hub 112 and related to the adapter 110.

Returning to FIG. 4, at block 410, the I/O hub 112 sets a flag in the PCI error vector 312. The PCI error vector 312 comprises a single bit for each of the adapters 110. The I/O hub 112 uses the PCI error vector base address 310, which, as described above, is an address in the system memory 104 where the PCI error vector 312 begins, and writes to the system memory 104 at an offset from the PCI error vector base 310 based on which of the adapters 110 is in error. For example, if the third adapter 110 (e.g. the adapter corresponding to device table entry 210 at index 3) connected to the I/O hub 112 is found to be in an error state, the I/O hub 112 will write the error in the PCI error vector 312 by starting at the address in the PCI error vector base 310, and then advancing X bits wherein X is the number of the adapter 110, in this case 3. The PCI error vector 312 is used by the monitoring thread 304 as an efficient method of detecting that an error exists and identifying the adapter that caused the error. At block 412, the I/O hub 112 generates an interrupt request, for example by setting a bit in the attention vector 306 of the CPU 102. The interrupt causes the CPU 102 to execute the monitoring thread 304. At block 414 the monitoring thread 304 checks the flags in the PCI error vector 312 to determine which of the adapters 110 is in an error state. Using the offset in the PCI error vector base 310, and the PCI error log base address 316, the monitoring thread 304 looks up the corresponding PCI error log record 320 in the PCI error log 318. The monitoring thread 304 then determines the type of error based on the information in the PCI error log record 320 and notifies the application 322 that an error exists. One way of managing communications between the adapters 110 and the application 322 is described in commonly assigned U.S. Patent Application Attorney Docket No. POU920100025US1, entitled “Managing Processing Associated with Hardware Events” filed on Jun. 17, 2010, which is incorporated by reference herein in its entirety. The application 322 uses its error handling logic to process the error message. Although the PCI error vector base address 310 and the PCI error log base address 316 are described as being part of the I/O hub 112, it will be understood that these fields can be stored in the system memory 104 (FIG. 1), or a second copy of the PCI error vector base address 310 and the PCI error log base address 316 may be stored in the monitoring thread 304.

Turning now to FIG. 6 a process for initializing the system will be described. At block 600 the computing environment 100 is started (e.g. a system boot up). At block 602, the PCI error log 318 is initialized. The initialization process sets aside a contiguous block of system memory 104 large enough to hold one record for each of the adapters 110 that is coupled to the I/O-to-memory bus 120. In alternate embodiments, additional memory space may be allocated to support the addition of one or more adapters 110 at runtime. At block 604 the PCI error vector 312 is initialized. The PCI error vector bits 314 are initialized to indicate that there are no errors in the adapters 110. At block 606, the PCI error log base address 316, and PCI error vector base address 310 are initialized by setting the values in the respective fields to the address of the first byte of memory allocated for the PCI error log 318 and the PCI error vector 312 respectively. At block 608 the adapters 110 in the computing environment 100 are initialized and registered with the I/O hub 112. At block 610, software initializes the device table entry 210 for each of the adapters 110. This includes initializing the error identifier fields 302 and 303 of a device table entry 210 to indicate that the corresponding adapter 110 is not in the error state.

For clarity the adapters 110 have been described as having only a single function, it will be understood, however, that an adapter 110 may comprise a plurality of functions wherein each function is treated like an individual adapter as described above by using one entry per function in the I/O hub 112 and in the PCI error log 318 and PCI error vector 312. In addition, although the adapters 110 have been described as PCIe adapters and functions, it will be understood that the present invention will apply equally to PCI adapters and functions as well as other I/O adapters and architectures as are known in the art.

Technical effects and benefits include a quick and efficient mechanism for notifying applications of errors occurring at the adapters. In addition, the present invention prevents the propagation of corrupt data by stopping all outbound transactions from exiting the I/O hub without requiring modifications of the adapters and maintaining the PCIe standards. Additional benefits include a compact mechanism, one bit per adapter, for flagging errors of an adapter in the I/O hub. A further benefit of the present invention is that an error in the adapter can be identified by a monitoring thread using only an array of memory consisting of one bit per adapter. Yet another benefit of the present invention is that the cause of the error can be identified and sent to the application so that proper action can be taken by the application.

The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.

The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.

As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present invention may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.

Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).

Aspects of the present invention are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.

The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

As described above, embodiments can be embodied in the form of computer-implemented processes and apparatuses for practicing those processes. In exemplary embodiments, the invention is embodied in computer program code executed by one or more network elements. Embodiments include a computer program product on a computer usable medium with computer program code logic containing instructions embodied in tangible media as an article of manufacture. Exemplary articles of manufacture for computer usable medium may include floppy diskettes, CD-ROMs, hard drives, universal serial bus (USB) flash drives, or any other computer-readable storage medium, wherein, when the computer program code logic is loaded into and executed by a computer, the computer becomes an apparatus for practicing the invention. Embodiments include computer program code logic, for example, whether stored in a storage medium, loaded into and/or executed by a computer, or transmitted over some transmission medium, such as over electrical wiring or cabling, through fiber optics, or via electromagnetic radiation, wherein, when the computer program code logic is loaded into and executed by a computer, the computer becomes an apparatus for practicing the invention. When implemented on a general-purpose microprocessor, the computer program code logic segments configure the microprocessor to create specific logic circuits.

The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. 

1. A system for implementing scalable input/output (I/O) function level error detection, isolation, and reporting, the system comprising: an I/O hub communicatively coupled to a computer processor, system memory and at least one I/O adapter, the at least one I/O adapter including a function and the I/O hub including logic for implementing a method, the method comprising: detecting an error in a communication initiated between the function and the system memory, the communication including an I/O request from an application; preventing future communication between the one function and the system memory in response to the detecting; and notifying the application that the error in communication occurred in response to the detecting.
 2. The system of claim 1, wherein the I/O bus is a Peripheral Component Interconnect Express (PCIe) bus.
 3. The system of claim 1, wherein the I/O hub sets a flag in the system memory indicating that the one of the one or more I/O adapters is in an error state in response to the detecting, and sends an interrupt to the computer processor, the interrupt causing a monitoring thread to initialize and check the status of the flag.
 4. The system of claim 3 wherein the notifying is responsive to the monitoring thread detecting that the flag indicates that the I/O adapter is in an error state.
 5. The system of claim 1 wherein one or more bits are set in the I/O hub to indicate that one of the one or more I/O adapters has entered an error state in response to the detecting.
 6. The system of claim 5 wherein the I/O hub prevents the future communication between the function and the system memory in response to checking the single bit before processing a transaction from the I/O adapter.
 7. The system of claim 1, wherein an error entry is created in the system memory in response to the detecting, the error entry identifying the function in error and a specific error condition detected by the I/O hub.
 8. A computer implemented method for implementing scalable input/output (I/O) function level error detection, isolation, and reporting, the method comprising: detecting, via an I/O hub, an error in a communication initiated between a function and a system memory, the communication including an I/O request from an application, and the function executing on an I/O adapter; preventing future communication between the function and the system memory in response to the detecting; and notifying the application that the error in communication occurred in response to the detecting.
 9. The method of claim 8, wherein the I/O adapter is a Peripheral Component Interconnect Express (PCIe) adapter.
 10. The method of claim 8, wherein the I/O hub sets a flag in the system memory indicating that one of the one or more I/O adapters is in an error state in response to the detecting, and sends an interrupt to a computer processor, the interrupt causing a monitoring thread to initialize and check the status of the flag.
 11. The method of claim 10 wherein the notifying is responsive to the monitoring thread detecting that the flag indicates that the I/O adapter is in an error state.
 12. The method of claim 8 wherein one or more bits are set in the I/O hub to indicate that one of the one or more I/O adapters has entered an error state in response to the detecting.
 13. The method of claim 12 wherein the I/O hub prevents the future communication between the function and the system memory in response to checking the single bit before processing a transaction from the I/O adapter.
 14. The method of claim 8, wherein an error entry is created in the system memory in response to the detecting, the error entry identifying the function in error and a specific error condition detected by the I/O hub.
 15. A computer program product for implementing scalable input/output (I/O) function level error detection, isolation, and reporting, the computer program product comprising: a non-transitory storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising: detecting, via an I/O hub, an error in a communication initiated between a function and a system memory, the communication including an I/O request from an application, and the function executing on an I/O adapter; preventing future communication between the function and the system memory in response to the detecting; and notifying the application that the error in communication occurred in response to the detecting.
 16. The computer program product of claim 15, wherein the I/O adapter is a Peripheral Component Interconnect Express (PCIe) adapter.
 17. The computer program product of claim 15, wherein the I/O hub sets a flag in the system memory indicating that one of the one or more I/O adapters is in an error state in response to the detecting, and sends an interrupt to a computer processor, the interrupt causing a monitoring thread to initialize and check the status of the flag.
 18. The computer program product of claim 17 wherein the notifying is responsive to the monitoring thread detecting that the flag indicates that the I/O adapter is in an error state.
 19. The computer program product of claim 15 wherein one or more bits are set in the I/O hub to indicate that one of the one or more I/O adapters has entered an error state in response to the detecting.
 20. The computer program product of claim 19 wherein the I/O hub prevents the future communication between the function and the system memory in response to checking the single bit before processing a transaction from the I/O adapter.
 21. The computer program product of claim 15, wherein an error entry is created in the system memory in response to the detecting, the error entry identifying the function in error and a specific error condition detected by the I/O hub. 